//
//  NSDate+Expend.h
//  expend
//
//  Created by ZAK on 14-3-27.
//  Copyright (c) 2014年 JKZL. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Expend)
+(NSDate *)createTodayAlarmDate;
+(NSDate *)createNewAlarmDate;
+(NSString *)returnCreditsExchangeProductTime:(NSDate *)timeDate;
/**
 *  时间转换成字符串
 *
 *  @param date
 *  @param formatterType
 *
 *  @return
 */
+(NSString *)toWeichatTime:(NSString *)time;
+(NSString *)localDatetime;
+(NSString *)localMediaDatetime;
-(NSString *)dataToStringWithChangeType:(NSString *)formatterType;
+(NSTimeInterval)timeDiff:(NSString *)older new:(NSString *)newer;

+(NSString *)getWeekDate:(NSString *)dateString;
+(NSString *)getMiddleAndSecond:(NSString *)dateString;
/**
 *  字符串转成时间
 *
 *  @param date
 *  @param formatterType
 *
 *  @return 
 */
+(NSDate *)stringToDate:(NSString *)date withChangeType:(NSString *)formatterType;

/**
 *  获取年份
 *
 *  @param date
 *
 *  @return
 */
+(NSInteger)getDateYear:(NSDate *)date;
/**
 *  创建一个自定义的日期
 *
 *  @param year
 *  @param mouth
 *  @param day
 *  @param hour
 *  @param minute
 *  @param second
 *
 *  @return
 */
+(NSDate *)createNewDate:(NSInteger)year Mouth:(NSInteger)mouth Day:(NSInteger)day Hour:(NSInteger)hour Minute : (NSInteger)minute Second:(NSInteger)second;

+ (NSInteger)numberDaysInMonthOfDate:(NSDate *)date_;

+(NSInteger)returnDefineMouthOfDays:(NSInteger)mouth currentDate:(NSDate *)date;

+(NSDate *)returnChangeDate:(NSInteger)day mouth:(NSInteger)mouth currentDate:(NSDate *)date;

+(NSDate *)getWeekBegin:(NSDate *)newDate;

+(NSDate *)createNewDateDay:(int)day current:(NSDate *)date;

+(NSInteger)needCirlceCount:(NSDate *)beginDate endDate:(NSDate *)endDate betweenDays:(NSInteger)days;


+(NSDate *)createNewDate:(NSInteger)addDay hour:(NSInteger)hour;

@end
